package cc.mycraft.manager;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;

import cc.mycraft.events.MyCraftTimingEvent;
import cc.mycraft.events.PlayerLogEvent;

public class LoggerListener implements Listener{
	
	@EventHandler
	public void onLogAddEvent(PlayerLogEvent e) {
		PlayerLogWriter.addLog(e);
	}
	
	@EventHandler
	public void onLogSaveEvent(MyCraftTimingEvent e) {
		PlayerLogWriter.saveLog();
	}
	
}
